PHONY=all

CFLAGS= -g -std=c99 -Wno-error=unused-variable -Wno-error=unused-function -Wunused-variable -Wunused-function
UTIL=common.c
message: send-message.c $(UTIL)
	gcc -o send-message $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)

sms: send-sms.c $(UTIL)
	gcc -o send-sms $^ `pkg-config --cflags --libs glib-2.0 dbus-1 dbus-glib-1` -Wall $(CFLAGS)

signal: sms-signal.c $(UTIL)
	gcc -o sms-signal $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)

noti: notification.c $(UTIL)
	gcc -o notification $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)

push-noti: push-notification.c generated-code.c
	gcc -o push-notification $^ `pkg-config --cflags --libs glib-2.0 gio-2.0 gio-unix-2.0` -Wall $(CFLAGS)

modem: list-modem.c $(UTIL)
	gcc -o list-modem $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)

property: set-property.c $(UTIL)
	gcc -o set-property $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)
hexdump: hexdump.c $(UTIL)
	gcc -o hexdump $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)
smart: smart-message.c $(UTIL)
	gcc -o smart $^ `pkg-config --cflags --libs glib-2.0 gio-2.0` -Wall $(CFLAGS)
